Skip to main content

두 정수 사이의 합

Solution

function solution(a, b) {
return ((a + b) * (Math.abs(b - a) + 1)) / 2;
}

Review

.

References